/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edu.kamai.xml.beans;

import java.awt.image.ImageObserver;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class choiceXML {
    public choiceXML(boolean m){
        this.multiChoice = m;
        choicesTxt = new ArrayList<String>();
        key = new ArrayList<String>();
    }
    
    public void addOneChoiceTxt(String txt){
        choicesTxt.add(txt);
    }
    
    public void addOneKey(String k){
        key.add(k);
    }
    
    public String getKeys(){
        String ret = "";
        for(String t : key){
            ret += t;
        }
        return  ret;
    }

    public List<String> getChoicesTxt() {
        return choicesTxt;
    }

    public void setChoicesTxt(List<String> choicesTxt) {
        this.choicesTxt = choicesTxt;
    }

    public String getMainTxt() {
        return mainTxt;
    }

    public void setMainTxt(String mainTxt) {
        this.mainTxt = mainTxt;
    }
    
    public void setChoices(List<String> choices) {
        this.choicesTxt = choices;
    }
    
    public List<String> getKey() {
        return key;
    }
    
    public void setKey(List<String> key) {
        this.key = key;
    }
    
    public boolean isMultiChoice() {
        return multiChoice;
    }
    
    public void setMultiChoice(boolean multiChoice) {
        this.multiChoice = multiChoice;
    }
    
    
    
    private String mainTxt;
    private boolean multiChoice;
    private List<String> choicesTxt;
    private List<String> key;
            
}
